#ifndef __MYKEYBOARD_H_
#define __MYKEYBOARD_H_
#include "main.h"



typedef enum 
{
	KEYUNPRESSED= 0,
	KEYPRESSED  = ~KEYUNPRESSED
}KeyState_enumTypedef;


extern unsigned char g_myKeyBoard_DataWaitForUploadFlag;
extern unsigned char ATKeyControlByte5 ;

extern uint8_t COPY_PASTE_flag;
extern uint8_t Hong_Flag;
extern uint8_t flag_2;
extern uint16_t tim3_Count_Time;
extern uint8_t tim3_Count_Time_Flag;
extern uint16_t RGB_Speed;
extern uint8_t Point_Water_Flag;
extern uint8_t BUZZ_FLAG;
extern uint8_t Count_Time_BUZZ;
extern uint8_t BUZZ_COUNT_FLAG;
extern KeyState_enumTypedef myKeyBoard_KeyState[6][16];
extern uint8_t Light_Grade;

void myKeyBoard_KeyScan(void);

void myKeyBoard_JudgeKeyStateChange(void);
void myKeyBoard_UpdataATDataPack(void);
void myKeyBoard_ScanKeyAndUpdataATBuffer(void);
unsigned char myKeyBoard_JudgeKeyPressWithName(const char* keyName);
void myKeyBoard_Process_All(void);

#endif